xen.git
19 years ago[HVM][LINUX][TOOLS] Make xm {shutdown|reboot} do something sensible for HVM
Steven Smith [Tue, 31 Oct 2006 09:54:49 +0000 (09:54 +0000)]
[HVM][LINUX][TOOLS] Make xm {shutdown|reboot} do something sensible for HVM
domains with PV drivers loaded.  This patch creates a new PV-on-HVM
module, reboot.ko, which, when loaded, creates control/reboot_module
in the store.  The tools notice this, and disable the watch which would
normally destroy HVM domains which are the target of an xm shutdown
command, allowing the reboot module to shut the domain down cleanly.

Signed-off-by: Tetsu Yamamoto <yamamoto.tetsu@jp.fujitsu.com>
(Checkin comments by Steven Smith <sos22@cam.ac.uk>)

19 years ago[XEN] Cleanup and improve accuracy of credit scheduler accounting code
Emmanuel Ackaouy [Mon, 30 Oct 2006 17:35:11 +0000 (17:35 +0000)]
[XEN] Cleanup and improve accuracy of credit scheduler accounting code
Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
19 years ago[LINUX] Fix build breakage from previous patch.
kfraser@localhost.localdomain [Mon, 30 Oct 2006 14:28:29 +0000 (14:28 +0000)]
[LINUX] Fix build breakage from previous patch.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[LINUX] Use CONFIG_XEN_COMPAT_030002 where possible.
kfraser@localhost.localdomain [Mon, 30 Oct 2006 14:14:46 +0000 (14:14 +0000)]
[LINUX] Use CONFIG_XEN_COMPAT_030002 where possible.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[LINUX] Declare structs as 'static __initdata' where possible.
kfraser@localhost.localdomain [Mon, 30 Oct 2006 14:09:13 +0000 (14:09 +0000)]
[LINUX] Declare structs as 'static __initdata' where possible.

Probably still not catching all possible cases, but using static
(where not already the case) makes the code size smaller, and using __initdata
has the usual advantages.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[LINUX] privcmd: Range-check hypercall index.
kfraser@localhost.localdomain [Mon, 30 Oct 2006 14:04:44 +0000 (14:04 +0000)]
[LINUX] privcmd: Range-check hypercall index.
Otherwise, bugs in e.g. libxc may bring the kernel down.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
19 years ago[XEN] HVM: Clean up and simplify vlapic device-model code.
kfraser@localhost.localdomain [Mon, 30 Oct 2006 13:53:09 +0000 (13:53 +0000)]
[XEN] HVM: Clean up and simplify vlapic device-model code.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM][VMX] Enable VMX TPR shadow feature.
kfraser@localhost.localdomain [Mon, 30 Oct 2006 10:42:27 +0000 (10:42 +0000)]
[HVM][VMX] Enable VMX TPR shadow feature.

x64 Windows uses CR8 to access TPR very frequently. This patch enables
TPR shadow and allows mov-from/to-CR8 to access it directly; tests
indicates it can boost greatly the performance of x64 Windows 2003.

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
19 years ago[HVM] Fix Qemu-dm serial issues:
kfraser@localhost.localdomain [Mon, 30 Oct 2006 09:45:17 +0000 (09:45 +0000)]
[HVM] Fix Qemu-dm serial issues:
 1. Retry transmit via a polling timer if a byte cannot be written
    immediately to its destination.
 2. Turn off output processing of raw serial lines.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Add implicit "\n" back into MEM_LOG(). Removed by mistake.
kaf24@firebug.cl.cam.ac.uk [Sat, 28 Oct 2006 11:30:38 +0000 (12:30 +0100)]
[XEN] Add implicit "\n" back into MEM_LOG(). Removed by mistake.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Some cleanups to the log-level stuff. Largely this
kaf24@localhost.localdomain [Fri, 27 Oct 2006 22:47:30 +0000 (23:47 +0100)]
[XEN] Some cleanups to the log-level stuff. Largely this
is a rename and slight interface change to DPRINTK (now
replaced by dprintk() and gdprintk()). Also shuffle some
log-level definitions around and tweak the semantics of
the upper threshold.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[QEMU] Add a TIS device model compliant to the 1.2 TPM specification.
kaf24@localhost.localdomain [Fri, 27 Oct 2006 18:15:48 +0000 (19:15 +0100)]
[QEMU] Add a TIS device model compliant to the 1.2 TPM specification.
It implements all registers necessary to make the Linux TIS driver
work (tpm_tis.c). All of the basic registers supported by this type of
device are implemented. Also the locality selection has been
implemented, but has not been tested. The legacy registers as
described in the specification are not supported.

Current caveat: The device has so far not yet been integrated with the
virtual TPM available in the repository. It will require changes to
the virtual TPM spawned by the vTPM manager to offer an additional message
interface. The TIS interface itself then needs to have an additional
transport implemented. (see vTPMTransmit array).

The relevant specification for the device model can be found here:
https://www.trustedcomputinggroup.org/groups/pc_client/TCG_PCClientTPMSpecification_1-20_1-00_FINAL.pdf

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[QEMU] Helper functions to interface with the xenstore and read device information...
kaf24@localhost.localdomain [Fri, 27 Oct 2006 18:13:51 +0000 (19:13 +0100)]
[QEMU] Helper functions to interface with the xenstore and read device information from it.

 - detect what types of devices a domain has or whether a domain has a
   device of a certain type
 - read the content of a variable related to a device, i.e.,
   hotplug-status
 - subscribe to changes of the hotplug status of a device for not
   having to poll the status

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[XEN] Logging parameters for ia64 code.
kaf24@localhost.localdomain [Fri, 27 Oct 2006 17:57:02 +0000 (18:57 +0100)]
[XEN] Logging parameters for ia64 code.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
19 years ago[XEN] Logging parameters for powerpc code.
kaf24@localhost.localdomain [Fri, 27 Oct 2006 17:56:44 +0000 (18:56 +0100)]
[XEN] Logging parameters for powerpc code.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
19 years ago[XEN] Logging parameters for x86 code.
kaf24@localhost.localdomain [Fri, 27 Oct 2006 17:56:24 +0000 (18:56 +0100)]
[XEN] Logging parameters for x86 code.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
19 years ago[XEN] Logging parameters for common code.
kaf24@localhost.localdomain [Fri, 27 Oct 2006 17:55:16 +0000 (18:55 +0100)]
[XEN] Logging parameters for common code.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
19 years ago[XEN] Implement log levels. It adds the thresholds and code to printk
kaf24@localhost.localdomain [Fri, 27 Oct 2006 17:52:55 +0000 (18:52 +0100)]
[XEN] Implement log levels. It adds the thresholds and code to printk
to implement the thresholds.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
19 years ago[XEN] Implement rate-limited logging.
kaf24@localhost.localdomain [Fri, 27 Oct 2006 17:46:20 +0000 (18:46 +0100)]
[XEN] Implement rate-limited logging.

Taken from Andi Kleen's rate limit in the Linux kernel.

This keeps large amounts of prints in the HV down.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
19 years ago[XEND] Do not delete VNC password from configuration.
kaf24@localhost.localdomain [Fri, 27 Oct 2006 17:15:14 +0000 (18:15 +0100)]
[XEND] Do not delete VNC password from configuration.
Fixes reboot of HVM guest when VNC authentication is in use.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] perf counters: Fix NULL-pointer check. Should happen later.
kaf24@localhost.localdomain [Fri, 27 Oct 2006 17:10:37 +0000 (18:10 +0100)]
[XEN] perf counters: Fix NULL-pointer check. Should happen later.
Signed-of-by: Kouya Shimura <kouya@jp.fujitsu.com>
19 years ago[HVM] Ensure that, if AP is blocked, it is woken by interrupt delivered by IOAPIC.
kaf24@localhost.localdomain [Fri, 27 Oct 2006 17:02:40 +0000 (18:02 +0100)]
[HVM] Ensure that, if AP is blocked, it is woken by interrupt delivered by IOAPIC.

This fixes 64-bit SMP Windows 2k3 boot.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
19 years ago[HVM] Fix SMP timer issues:
kaf24@localhost.localdomain [Fri, 27 Oct 2006 17:00:03 +0000 (18:00 +0100)]
[HVM] Fix SMP timer issues:
 * Sync AP TSCs with BP at startup
 * Only halt BP TSC when descheduled
 * Correctly handle IPIs on timer vector
Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
19 years ago[QEMU] ne2000: Stop memory access beyond buffer
kaf24@localhost.localdomain [Fri, 27 Oct 2006 16:50:40 +0000 (17:50 +0100)]
[QEMU] ne2000: Stop memory access beyond buffer

As a program that runs in dom0 which serves users from guests,
the qemu drivers need to be vigilant to the input that comes
from the guests since they may be malicious.

As it is there are multiple ways to get ne2000 to read/write
memory beyond the 48K buffer that it has allocated for each
adapter.

This patch checks the addresses and prevents this from occuring.

The boundary is checked each time since it's changed for every
packet received while the other parameters are only changed
(by the guest) during setup.

Signed-off: Herbert Xu <herbert@gondor.apana.org.au>

19 years agoImprove I/O performance when competing with CPU intensive workloads.
Emmanuel Ackaouy [Fri, 27 Oct 2006 14:44:27 +0000 (15:44 +0100)]
Improve I/O performance when competing with CPU intensive workloads.
Allow non CPU consuming wake-to-run latency sensitive VCPUs to
preempt CPU consuming ones.

Signed-off-by: Emmanuel Ackaouy <ack@xensource.com>
19 years ago[TOOLS] Uncompress and allocate memory for gzipped kernel and initrd images on
Ian Campbell [Thu, 26 Oct 2006 15:56:16 +0000 (16:56 +0100)]
[TOOLS] Uncompress and allocate memory for gzipped kernel and initrd images on
the fly. We cannot rely on the length contained in the gzip trailer to determine
the length of the decompressed data because images have been observed which have
trailing junk.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[HVM] Fix qemu's test for whether physcal addresses are RAM.
Tim Deegan [Thu, 26 Oct 2006 14:08:20 +0000 (15:08 +0100)]
[HVM] Fix qemu's test for whether physcal addresses are RAM.
HVM guests have a memory hole below 4GB, so can't just check whether
addresses are < the amount of RAM allocated.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[NET] back: Advertise that we do not support rx-flip path any more.
kfraser@localhost.localdomain [Thu, 26 Oct 2006 10:50:17 +0000 (11:50 +0100)]
[NET] back: Advertise that we do not support rx-flip path any more.
This will now be used only by older guests who do not understand
the feature-rx-{copy,flip} feature flags.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoMerge with xen-isa64-unstable.hg
kfraser@localhost.localdomain [Thu, 26 Oct 2006 10:26:05 +0000 (11:26 +0100)]
Merge with xen-isa64-unstable.hg

19 years agoFix ramdisk Makefile so that downloading from xm-test.xensource.com actually
Ewan Mellor [Thu, 26 Oct 2006 09:20:22 +0000 (10:20 +0100)]
Fix ramdisk Makefile so that downloading from xm-test.xensource.com actually
works.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
19 years ago[LIBXC][IA64] fix build warning
awilliam@xenbuild.aw [Wed, 25 Oct 2006 21:29:00 +0000 (15:29 -0600)]
[LIBXC][IA64] fix build warning

With warnings becoming errors, this fixes the libxc build on ia64

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years ago[IA64] NUMA support
awilliam@xenbuild.aw [Wed, 25 Oct 2006 20:48:55 +0000 (14:48 -0600)]
[IA64] NUMA support

Based on patch from Tristan Gingold

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild.aw [Wed, 25 Oct 2006 18:12:01 +0000 (12:12 -0600)]
merge with xen-unstable.hg

19 years ago[IA64][HVM][QEMU] Add buffer IO mechanism for IA64/VTi domain.
kfraser@localhost.localdomain [Wed, 25 Oct 2006 14:29:36 +0000 (15:29 +0100)]
[IA64][HVM][QEMU] Add buffer IO mechanism for IA64/VTi domain.

Signed-off-by:Zhang xiantao <xiantao.zhang@intel.com>

19 years ago[IA64][HVM] Add buffer IO mechanism for Xen/VTi domain. Current
kfraser@localhost.localdomain [Wed, 25 Oct 2006 14:29:08 +0000 (15:29 +0100)]
[IA64][HVM] Add buffer IO mechanism for Xen/VTi domain. Current
implementation can accelerate Windows guest's dense IO operations
at boot time.

Signed-off-by: Zhang xiantao <xiantao.zhang@intel.com>
19 years ago[LIBXC] Add -Wmissing-prototypes to CFLAGS, fix warnings resulting from that.
kfraser@localhost.localdomain [Wed, 25 Oct 2006 14:25:13 +0000 (15:25 +0100)]
[LIBXC] Add -Wmissing-prototypes to CFLAGS, fix warnings resulting from that.

Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
19 years ago[XEN] Clean up NUMA stuff and disable by default ('numa=on' enables it).
kfraser@localhost.localdomain [Wed, 25 Oct 2006 14:17:40 +0000 (15:17 +0100)]
[XEN] Clean up NUMA stuff and disable by default ('numa=on' enables it).
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoPrint the time to xend-debug.log, when starting or restarting Xend.
Ewan Mellor [Wed, 25 Oct 2006 14:01:51 +0000 (15:01 +0100)]
Print the time to xend-debug.log, when starting or restarting Xend.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoPV-to-HVM: Add a compatibility define for the end_that_request_last
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
PV-to-HVM: Add a compatibility define for the end_that_request_last
which changed prototype in 2.6.16.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years agoPV-on-HVM: Include compatibility kzalloc implementation for kernels
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
PV-on-HVM: Include compatibility kzalloc implementation for kernels
before 2.6.14.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years agoPV-to-HVM: Impletement compatibility version of
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
PV-to-HVM: Impletement compatibility version of
schedule_timeout_interruptible for kernels before 2.6.14

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years agoPV-on-HVM: Implement and export a compatibility version of do_exit().
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
PV-on-HVM: Implement and export a compatibility version of do_exit().
Kernels prior to 2.6.12 did not export do_exit().

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years agoPV-on-HVM: Implement compatibilty version of wait_for_completion_timeout
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
PV-on-HVM: Implement compatibilty version of wait_for_completion_timeout
for kernels before 2.6.11

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoPV-on-HVM: Include compatability vmalloc_to_pfn for kernels before 2.6.10
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
PV-on-HVM: Include compatability vmalloc_to_pfn for kernels before 2.6.10

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years agoPV-on-HVM: Kernels prior to 2.6.8 did not export strcspn to modules
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
PV-on-HVM: Kernels prior to 2.6.8 did not export strcspn to modules
therefore implement our own and export it.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years agoPV-on-HVM: Define system_state as 1 (SYSTEM_RUNNING) on kernels prior
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
PV-on-HVM: Define system_state as 1 (SYSTEM_RUNNING) on kernels prior
to 2.6.7. These kernels did not export the system_state variable to
modules.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoPV-to-HVM: Implement compatibility nonseekable_open as a nop on
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
PV-to-HVM: Implement compatibility nonseekable_open as a nop on
kernels before 2.6.9

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoPV-to-HVM: Add compatibility definitions of various #defines when they
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
PV-to-HVM: Add compatibility definitions of various #defines when they
are not present in the kernel we are building against.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years agoPV-on-HVM: Include compatability headers for asm/pgtable-no{pmd,pud}.h
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
PV-on-HVM: Include compatability headers for asm/pgtable-no{pmd,pud}.h
for kernels before 2.6.11.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years agoPV-on-HVM: Add a compatibility linux/mutex.h for kernels before
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
PV-on-HVM: Add a compatibility linux/mutex.h for kernels before
2.6.16.  This implements the new mutex type in terms of the old
semaphore type.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years agoPV-on-HVM: Add a compatibility linux/io.h for kernels before 2.6.16
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
PV-on-HVM: Add a compatibility linux/io.h for kernels before 2.6.16

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years agoPV-on-HVM: Add infrastructure for a compatibility shim in order to
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
PV-on-HVM: Add infrastructure for a compatibility shim in order to
support PV-on-HVM drivers for older kernel releases.

The compatability code is included in the xen-platform-pci module
since this module underpins all the others.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years ago[LINUX] PV-on-HVM: The elevator_init prototype changed in 2.6.10
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
[LINUX] PV-on-HVM: The elevator_init prototype changed in 2.6.10

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years ago[LINUX] PV-on-HVM: Implement HDIO_GETGEO ioctl on kernels before
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
[LINUX] PV-on-HVM: Implement HDIO_GETGEO ioctl on kernels before
2.6.16.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years ago[LINUX] PV-on-HVM: The probe, remove and shutdown methods were added
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
[LINUX] PV-on-HVM: The probe, remove and shutdown methods were added
to struct bus_type in 2.6.16. For older kernels use the methods on the
struct device_driver.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years ago[LINUX] PV-on-HVM: Only initialize the owner field of struct
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
[LINUX] PV-on-HVM: Only initialize the owner field of struct
device_driver on kernels from 2.6.10 onward. The field was not
available until then.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years ago[LINUX] Exclude support for /proc/xen/xsd_kva when building a
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
[LINUX] Exclude support for /proc/xen/xsd_kva when building a
non-privileged guest.

This is useful for PV-on-HVM because it removes code which would
otherwise require extra code in the compatability shim.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[LINUX] PV-on-HVM: Remove the attr parameter from device attribute
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
[LINUX] PV-on-HVM: Remove the attr parameter from device attribute
show methods on kernels prior to 2.6.13. The parameter was not present
before that.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years ago[LINUX] Move xenbus backend probing into a separate source file and
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
[LINUX] Move xenbus backend probing into a separate source file and
only build it when CONFIG_XEN_BACKEND is set.

This removes unused code from frontend only configurations and also
makes PV-on-HVM drivers on older kernels simpler by removing code
which would otherwise require extra code in the compatability shim.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years agoPV-on-HVM: Include a Makefile in each subdirectory to maintain
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
PV-on-HVM: Include a Makefile in each subdirectory to maintain
compatability with kernels from before Kbuild files were introduced.

This follows best practice as described in
Documentation/kbuild/modules.txt

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
19 years ago[LINUX] PV-on-HVM: Directly include headers which are used in various
Ian Campbell [Wed, 25 Oct 2006 12:58:30 +0000 (13:58 +0100)]
[LINUX] PV-on-HVM: Directly include headers which are used in various
files rather than relying on them being included indirectly.

This is required because these headers are not pulled in indirectly on
older kernels.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
19 years ago[XEN] Make memory hypercalls NUMA-aware.
kfraser@localhost.localdomain [Wed, 25 Oct 2006 11:30:08 +0000 (12:30 +0100)]
[XEN] Make memory hypercalls NUMA-aware.

This patch modifies memory ops to use the NUMA-aware page allocator
functions.  We use the target domain's VCPU0 placement to determine
which node's memory to use.  We expect the system administrator to
utilize the exposed NUMA topology information to help craft guest
config files that are NUMA-friendly (use only processors and memory values
that will fit within a given node).

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
19 years ago[XEN] NUMA-ify Xen heap and page allocator
kfraser@localhost.localdomain [Wed, 25 Oct 2006 11:28:46 +0000 (12:28 +0100)]
[XEN] NUMA-ify Xen heap and page allocator

This patch adds a per-node bucket to the heap structure in Xen.
During heap initialization the patch determines which bucket to place
the memory. We reserve guard pages between node boundaries in the case
that said boundary isn't already guarded by the MAX_ORDER boundary to
prevent the buddy allocator from merging pages between nodes.

Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
19 years ago[XEN] Add basic NUMA/SRAT support to Xen from Linux 2.6.16.29.
kfraser@localhost.localdomain [Wed, 25 Oct 2006 11:25:54 +0000 (12:25 +0100)]
[XEN] Add basic NUMA/SRAT support to Xen from Linux 2.6.16.29.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
19 years agomerge
kfraser@localhost.localdomain [Wed, 25 Oct 2006 10:51:23 +0000 (11:51 +0100)]
merge

19 years ago[HVM] Move ACPI timer to HV, which is the last platform timer in Qemu.
kfraser@localhost.localdomain [Wed, 25 Oct 2006 10:50:54 +0000 (11:50 +0100)]
[HVM] Move ACPI timer to HV, which is the last platform timer in Qemu.

We found Vista polls ACPI timer very frequently (about 15 times
averagely) when handling timer (RTC @ 64HZ) interrupt routine. Though
the exact reason is known, it should be related to system time
adjustment. When it's in Qemu, the overhead is big. After moving,
Vista's idle overhead decreases dramatically from ~10% to 0.9%.=20

Another benefit is that Vista can only pass Performance rating with
this patch. The root cause is that ACPI timer in Qemu isn't
synchronous with other platform timer in HV, which results in Vista
complains "can't measure TSC frequency".

This patch changes vpit.h to vpt.h, for it not only has pit structure
in it, but other platform timer's structure. Another change is moving
ACPI timer and related address from acpi.h to ioreq.h, which can be shared
by HV and ACPI firmware.

Signed-off-by: Xiaowei Yang <xiaowei.yang@intel.com>
19 years ago[XEND] Be more generous with the default shadow allocation.
Tim Deegan [Wed, 25 Oct 2006 10:44:58 +0000 (11:44 +0100)]
[XEND] Be more generous with the default shadow allocation.
Allow enough shadow memory to avoid thrashing the shadow pages,
rather than just enough for safety.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[HVM] Avoid buffer overrun in qemu-dm
Tim Deegan [Wed, 25 Oct 2006 10:39:57 +0000 (11:39 +0100)]
[HVM] Avoid buffer overrun in qemu-dm
The array offset in set_bits_in_row here comes from an otherwise un-checked
VNC client request.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
19 years ago[BLOCK] blkback: Fix potential grant entry leaks on error
kfraser@localhost.localdomain [Wed, 25 Oct 2006 09:59:00 +0000 (10:59 +0100)]
[BLOCK] blkback: Fix potential grant entry leaks on error

As it stands grant entries for the actual data are mapped in bulk.
If one of the earlier entries fail to be mapped, it can cause all
subsequent entries to be leaked if they were successfully mapped.

This patch changes it so that we will continue to reap grant entries
even when an error is detected.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
19 years ago[BLKTAP] Simplify linked-list insertion/deletion.
kfraser@localhost.localdomain [Wed, 25 Oct 2006 09:56:50 +0000 (10:56 +0100)]
[BLKTAP] Simplify linked-list insertion/deletion.
This should also avoid (bogus) compiler warnings, as reported
on IA64.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEND] Open xend-debug.log in append mode.
kfraser@localhost.localdomain [Wed, 25 Oct 2006 09:27:03 +0000 (10:27 +0100)]
[XEND] Open xend-debug.log in append mode.
Signed-off-by: John Levon <john.levon@sun.com>
19 years ago[TOOLS][XENTOP] Update usage and manpage to include vbd options.
kfraser@localhost.localdomain [Wed, 25 Oct 2006 09:25:18 +0000 (10:25 +0100)]
[TOOLS][XENTOP] Update usage and manpage to include vbd options.

Also a couple of whitespace fixes.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
19 years agomerge with xen-unstable.hg
awilliam@xenbuild.aw [Tue, 24 Oct 2006 17:21:48 +0000 (11:21 -0600)]
merge with xen-unstable.hg

19 years ago[IA64] xenctx shows more registers for ia64
awilliam@xenbuild.aw [Tue, 24 Oct 2006 16:08:30 +0000 (10:08 -0600)]
[IA64] xenctx shows more registers for ia64

This patch adds more user registers to show them to xenctx for ia64.
Tested domU/domVTi on ia64.

Sample is the below.
# ./xenctx 1 0
 iip:               e000000000000810
 ipsr:              00001012087a6010   b0:                a000000100068a70
 b6:                a00000010014ff60   b7:                e000000000000800
 cr_ifs:            800000000000050a   ar_unat:           0000000000000000
 ar_pfs:            8000000000000209   ar_rsc:            0000000000000008
 ar_rnat:           0000000000000000   ar_bspstore:       a000000100c19030
 ar_fpsr:           0009804c8a70433f   event_callback_ip: a000000100067a20
 pr:                000000000005aa85   loadrs:            0000000000780000
 iva:               a000000100008000   dcr:               0000000000007e04

 r1:  a0000001010369a0
 r2:  0000000000001000   r3:  8000000000000209
 r4:  0000000000000000   r5:  0000000000000000
 r6:  0000000000000000   r7:  0000000000000000
 r8:  a000000100068a70   r9:  0000000000000100
 r10: 0000000000000000   r11: 0000000000050ac5
 sp:  a000000100c1fd80   tp:  a000000100c18000
 r14: 0000000000000001   r15: 0000000000000000
 r16: fffffffffff04c18   r17: a000000100c1fdb0
 r18: a000000100c1fdb1   r19: a000000100c1fe90
 r20: a000000100c1fe10   r21: 0000000000000000
 r22: 0000000000000001   r23: 0000000000000000
 r24: a000000100e5a448   r25: a000000100c18f10
 r26: ffffffffffff0030   r27: 0000000000000000
 r28: 000000000000001d   r29: 0000000000000000
 r30: 0000000000000000   r31: 0000000000000000

 itr: P rid    va               pa            ps      ed pl ar a d ma    key
 [0]  1 000005 a000000100000000 0000004000000 1a  64M 1  2  3  1 1 0 WB  000000
 [1]  1 000007 e000000000000000 0000000000000 18  16M 1  2  3  1 1 0 WB  000000
 [2]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [3]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [4]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [5]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [6]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [7]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000

 dtr: P rid    va               pa            ps      ed pl ar a d ma    key
 [0]  1 000005 a000000100000000 0000004000000 1a  64M 1  2  3  1 1 0 WB  000000
 [1]  1 000007 ffffffffffff0000 0000000010000 10  64K 1  2  3  1 1 0 WB  000000
 [2]  1 000007 e000000000000000 0000000000000 18  16M 1  2  3  1 1 0 WB  000000
 [3]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [4]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [5]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [6]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000
 [7]  0 000000 0000000000000000 0000000000000 00      0  0  0  0 0 0 WB  000000

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years ago[IA64] Support multiple page sizes in VHPT
awilliam@xenbuild.aw [Tue, 24 Oct 2006 15:49:31 +0000 (09:49 -0600)]
[IA64] Support multiple page sizes in VHPT

Enable VHPT support for multiple page sizes.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
19 years agoAdd x86_64 to the supported architectures since otherwise the tests
Ewan Mellor [Tue, 24 Oct 2006 15:46:02 +0000 (16:46 +0100)]
Add x86_64 to the supported architectures since otherwise the tests
don't run.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years ago[IA64] Move console_start_sync() in INIT path
awilliam@xenbuild.aw [Tue, 24 Oct 2006 15:22:56 +0000 (09:22 -0600)]
[IA64] Move console_start_sync() in INIT path

This patch moves console_start_sync() before first message in
ia64_init_handler(), and it cleans up ia64_init_handler().

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
19 years agoFix Memory assumptions in the create tests.
Ewan Mellor [Tue, 24 Oct 2006 13:52:20 +0000 (14:52 +0100)]
Fix Memory assumptions in the create tests.

Use the architecture specified idea of minimum memory.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
19 years ago[qemu patches] Update patches upto changeset 11870:29b02d929b7e.
Christian Limpach [Tue, 24 Oct 2006 13:48:06 +0000 (14:48 +0100)]
[qemu patches] Update patches upto changeset 11870:29b02d929b7e.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
19 years agoThis puts two small fixes in the xm-test suite:
Ewan Mellor [Tue, 24 Oct 2006 13:47:41 +0000 (14:47 +0100)]
This puts two small fixes in the xm-test suite:
- it turns off verbose mode of the ACM module
- copies the test policy to the policies directory only if the directory
has been created

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
19 years agoAdded multiarch support to xm-test. Bumped version number to xm-test 1.0.
Ewan Mellor [Tue, 24 Oct 2006 13:47:17 +0000 (14:47 +0100)]
Added multiarch support to xm-test.  Bumped version number to xm-test 1.0.
New README for public ramdisks.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoUpdate buildroot configs to match snapshot downloaded for public ramdisks.
Ewan Mellor [Tue, 24 Oct 2006 13:46:23 +0000 (14:46 +0100)]
Update buildroot configs to match snapshot downloaded for public ramdisks.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoIgnore more build-time files for xm-test.
Ewan Mellor [Tue, 24 Oct 2006 13:44:55 +0000 (14:44 +0100)]
Ignore more build-time files for xm-test.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
19 years agoDefault to appending to "extra" in XenConfig.
Ewan Mellor [Mon, 23 Oct 2006 09:17:10 +0000 (10:17 +0100)]
Default to appending to "extra" in XenConfig.

PowerPC needs console information from the command line.  Resetting the whole
command line causes false failures.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
19 years agoIgnore generated .test files.
Ewan Mellor [Mon, 23 Oct 2006 09:16:48 +0000 (10:16 +0100)]
Ignore generated .test files.

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
19 years agoAdd ability to inspect messages from domain for arbitrary strings.
Ewan Mellor [Mon, 23 Oct 2006 09:16:20 +0000 (10:16 +0100)]
Add ability to inspect messages from domain for arbitrary strings.

Used on PowerPC to FAIL(), if the guest domain hits a BUG() and enters XMON.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
19 years agoAdd configuration data for powerpc.
Ewan Mellor [Mon, 23 Oct 2006 09:15:39 +0000 (10:15 +0100)]
Add configuration data for powerpc.

Allows for building of initrd, and running of tests.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
19 years agoRefactor code to encapsulate architecture decisions in one place.
Ewan Mellor [Mon, 23 Oct 2006 09:14:13 +0000 (10:14 +0100)]
Refactor code to encapsulate architecture decisions in one place.

Also includes some whitespace fixes.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
19 years agoUpdate .hgignore to remove artifacts of ramdisk build.
Ewan Mellor [Mon, 23 Oct 2006 09:09:40 +0000 (10:09 +0100)]
Update .hgignore to remove artifacts of ramdisk build.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
19 years agoRename buildroot -> buildroot-i386.
Ewan Mellor [Mon, 23 Oct 2006 09:07:15 +0000 (10:07 +0100)]
Rename buildroot -> buildroot-i386.

Also update Makefile.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
19 years ago[XEN] Remove definition of printf. All users are switched to printk.
kfraser@localhost.localdomain [Mon, 23 Oct 2006 13:42:52 +0000 (14:42 +0100)]
[XEN] Remove definition of printf. All users are switched to printk.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[BLKTAP] Do not allocate a descriptor for blktap control device
kfraser@localhost.localdomain [Mon, 23 Oct 2006 13:19:14 +0000 (14:19 +0100)]
[BLKTAP] Do not allocate a descriptor for blktap control device
(minor 0).

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
19 years ago[BLKTAP] Only allocate tapfd descriptors when they are requested.
kfraser@localhost.localdomain [Mon, 23 Oct 2006 13:18:16 +0000 (14:18 +0100)]
[BLKTAP] Only allocate tapfd descriptors when they are requested.

Currently all are allocated at bootup, even when they will never be used.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
19 years ago[BALLOON] Add a sysfs interface.
kfraser@localhost.localdomain [Mon, 23 Oct 2006 13:09:01 +0000 (14:09 +0100)]
[BALLOON] Add a sysfs interface.
Information is located under /sys/devices/system/memory.

Original patch from Satoshi UCHIDA <s-uchida@ap.jp.nec.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XEN] Fill in runstate_info when virtual address is registered,
kfraser@localhost.localdomain [Mon, 23 Oct 2006 12:10:24 +0000 (13:10 +0100)]
[XEN] Fill in runstate_info when virtual address is registered,
even when it is registered from the 'wrong' VCPU.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[XM] Print qualified path to config file on domain creation.
kfraser@localhost.localdomain [Mon, 23 Oct 2006 11:43:32 +0000 (12:43 +0100)]
[XM] Print qualified path to config file on domain creation.
From: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years agoAllow domain config file to specify credit-scheduler parameters.
kfraser@localhost.localdomain [Mon, 23 Oct 2006 11:28:33 +0000 (12:28 +0100)]
Allow domain config file to specify credit-scheduler parameters.
Signed-off-by: Masami Watanabe <masami.watanabe@jp.fujitsu.com>
19 years ago[XM] Allow empty resource strings (e.g., when creating an empty CDROM
kfraser@localhost.localdomain [Mon, 23 Oct 2006 11:23:57 +0000 (12:23 +0100)]
[XM] Allow empty resource strings (e.g., when creating an empty CDROM
device). Also clean up error/acces-denied path.
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[HVM] No need to call hvm_do_resume() on every vm entry.
kfraser@localhost.localdomain [Mon, 23 Oct 2006 10:46:41 +0000 (11:46 +0100)]
[HVM] No need to call hvm_do_resume() on every vm entry.
Original patch from Xin Li <xin.b.li@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
19 years ago[NET] back: Fix packet queuing so that packets are drained if the
kfraser@localhost.localdomain [Mon, 23 Oct 2006 10:20:37 +0000 (11:20 +0100)]
[NET] back: Fix packet queuing so that packets are drained if the
interface is blocked for longer than 500ms. This avoids deadlock
situations where interfaces cannot be destroyed because some other
dormant interface is holding resources.

Signed-off-by: Christopher Clark <christopher.clark@cl.cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>